﻿package game.objects {
	import flash.display.DisplayObject;
	
	public class DynamicElement {
		
		public static const TYPE_BUTTON:String	= "type.button";
		public static const TYPE_TEXT:String	= "type.text";
		public static const TYPE_SLIDER:String	= "type.slider";
		
		public static const CLASS_TEXT:String	= "game.ui.Text";
		public static const CLASS_SLIDER:String	= "game.ui.Slider";
		
		public var type:String;
		public var classString:String;
		public var name:String;
		public var params:Object;
		public var data:DisplayObject;
		
		public function DynamicElement( type:String, classString:String, name:String, params:Object = null ):void {
			
			this.type			= type;
			this.classString	= classString;
			this.name			= name;
			this.params			= (params) ? params : new Object;
			
			
		}
		
	}
	
}